package com.wzy.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.wzy.springcloud.entities.CommonResult;
import com.wzy.springcloud.entities.Payment;


public class CustomHandler {
    public static CommonResult handlerException(BlockException exception) {
        return new CommonResult(200, "按客户自定义,global handlerException111", new Payment(2020L, "serial003"));

    }

    public static CommonResult handlerException2(BlockException exception) {
        return new CommonResult(200, "按客户自定义,global handlerException222", new Payment(2020L, "serial004"));

    }
}